{"version":3,"file":"xy.min.js","sources":["xy.js"],"names":["AmCharts","AmXYChart","Class","inherits","AmRectangularChart","construct","base","call","this","createEvents","maxZoomFactor","chartType","initChart","dataChanged","updateData","dispatchDataUpdated","updateScrollbar","drawChart","autoMargins","marginsUpdated","measureMargins","a","marginLeftReal","c","marginTopReal","b","plotAreaWidth","d","plotAreaHeight","graphsSet","clipRect","bulletSet","trendLinesSet","createValueAxes","xAxes","yAxes","valueAxes","e","length","f","position","rotate","setOrientation","orientation","push","ValueAxis","processValueAxis","graphs","processGraph","ifArray","chartData","chartScrollbar","updateScrollbars","zoomChart","cleanChart","hideXScrollbar","scrollbarH","removeListener","handleHSBZoom","destroy","hideYScrollbar","scrollbarV","handleVSBZoom","dispDUpd","chartCreated","zoomScrollbars","callMethod","chartCursor","toggleZoomOutButton","zoomObjects","zoomTrendLines","dispatchAxisZoom","heightMultiplier","widthMultiplier","showZB","isNaN","min","max","coordinateToValue","verticalPosition","horizontalPosition","dispatchZoomEvent","updateObjectSize","zoom","parseData","dataProvider","g","data","valueField","k","m","maxValue","type","valueBalloonsEnabled","zoomOut","chart","minMaxField","minTemp","NaN","maxTemp","listenTo","handleAxisSelfZoom","xAxis","yAxis","axes","x","y","id","l","q","n","serialDataItem","index","p","h","Number","value","xField","yField","errorField","error","values","processFields","graph","formatString","numberFormatter","formatValue","indexOf","formatDataContextValue","dataContext","addChartScrollbar","scrollbarHeight","split","SimpleChartScrollbar","skipEvent","copyProperties","updateTrendLines","trendLines","valueAxis","valueAxisX","updateMargins","getScrollbarPosition","adjustMargins","updateChartScrollbar","draw","relativeZoom","fitMultiplier","multiplier","setAnimationPlayed","handleCursorZoom","selectionWidth","selectionHeight","selectionX","selectionY","removeChartScrollbar","handleReleaseOutside"],"mappings":"AAAAA,SAASC,UAAUD,SAASE,OAAOC,SAASH,SAASI,mBAAmBC,UAAU,WAAWL,SAASC,UAAUK,KAAKD,UAAUE,KAAKC,KAAMA,MAAKC,aAAa,SAAUD,MAAKE,cAA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